Fix make check
authorMatthias Clasen <mclasen@redhat.com>
Fri, 4 Dec 2015 21:59:29 +0000 (16:59 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 4 Dec 2015 22:01:03 +0000 (17:01 -0500)
GtkFontChooserWidget is using a GThemedIcon in its template,
so we need to ensure that the type is registered before
loading it. This was causing the defaultvalue test to fail.

gtk/gtkfontchooserwidget.c

index 956119f3415967150f64b89bba65ed0c38a874a3..62e7c0aa19e6033fa52713491a62e9ca6f80f4c5 100644 (file)
@@ -573,6 +573,7 @@ gtk_font_chooser_widget_class_init (GtkFontChooserWidgetClass *klass)
   GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
 
   g_type_ensure (GTK_TYPE_DELAYED_FONT_DESCRIPTION);
+  g_type_ensure (G_TYPE_THEMED_ICON);
 
   widget_class->screen_changed = gtk_font_chooser_widget_screen_changed;
   widget_class->style_updated = gtk_font_chooser_widget_style_updated;